import { request } from '@/utils';
import { applyParams, searchParams } from './types';

/** 获取申请 */
export const getApply = () => {
  return request.get('/api/AIProvider/AdminApplyRequest');
};

/** 处理申请 */
export const handleApply = (applyParams: applyParams) => {
  return request.post('/api/AIProvider/AdminApplyRequest', applyParams);
};

/** 模型申请查询 */
export const searchModelApply = (searchParams: searchParams) => {
  return request.post('/api/AIProvider/searchRequest', searchParams);
};